package com.dingding.study.service.责任链模式.pay;

import com.dingding.study.service.责任链模式.PayHandler;
import org.springframework.stereotype.Service;

@Service
public class WeixinPayHandler extends PayHandler {

    public String pay(String code) {
        if ("weixin".equals(code)) {
            System.out.println("===发起微信支付===");
        } else {
            getNext().pay(code);
        }
        return "**发起微信支付**";
    }
}
